import request from '@/utils/request'

// 长期堆存集装箱预警
export function otStorageFetchList(data = {}) {
  return request({
    url: '/storageWarning/otStorage/findByPage',
    method: 'post',
    params: data
  })
}

// 超时未提离预警
export function otTakeoutFetchList(data = {}) {
  return request({
    url: '/storageWarning/otTakeout/findByPage',
    method: 'post',
    params: data
  })
}

// 超时未申报预警
export function otDeclareFetchList(data = {}) {
  return request({
    url: '/storageWarning/otDeclare/findByPage',
    method: 'post',
    params: data
  })
}

// 集装箱号异常预警
export function contNoErrorFetchList(data = {}) {
  return request({
    url: '/contNoError/findByPage',
    method: 'post',
    params: data
  })
}

// 集装箱口岸漂移预警
export function flowErrorContFetchList(data = {}) {
  return request({
    url: '/flowErrorCont/findByPage',
    method: 'post',
    params: data
  })
}

// 集装箱异常离场预警
export function errorLeaveFetchList(data = {}) {
  return request({
    url: '/errorLeave/findByPage',
    method: 'post',
    params: data
  })
}

// 获取漂移集装箱在其他码头位置信息
export function getByContNo(data = {}) {
  return request({
    url: '/flowErrorCont/getByContNo',
    method: 'post',
    params: data
  })
}

// 处理
export function update(data = {}) {
  return request({
    url: '/storageWarning/update',
    method: 'post',
    params: data
  })
}
